﻿using System.Collections.Generic;
using System.Web.Http;
using Sportsbook.Domain.Models.Lines;
using Sportsbook.Domain.Repositories;

namespace Sportsbook.Website.Areas.Api.Controllers
{
    public class LinesController : ApiController
    {
        private readonly ILinesRepository repository;

        public LinesController(ILinesRepository repository)
        {
            this.repository = repository;
        }

        public IEnumerable<ILine> Get(string sportId, string filterType, string leagueId)
        {
            var model = repository.Get(sportId, filterType, leagueId);
            return model;
        }
    }
}
